

# 定义函数
def assert_p2p(resp,status_code,status,description):
    '''
    resp:响应对象
    status_code:响应状态码
    status:响应状态
    description:响应数据
    '''
    assert status_code == resp.status_code
    assert status == resp.json().get("status")
    assert description in resp.json().get("description")